home *** CD-ROM | disk | FTP | other *** search
/ Night Owl 9 / Night Owl CD-ROM (NOPV9) (Night Owl Publisher) (1993).ISO / 002a / vc50_jan.zip / VBAIT.BAT < prev    next >
DOS Batch File  |  1993-01-24  |  4KB  |  91 lines

  1. ECHO OFF
  2. CLS
  3. IF "%1"=="" GOTO HELP
  4. IF NOT EXIST VCHECK ECHO   You should be in the VC5 Home Directory to run %0
  5. IF NOT EXIST VCHECK ECHO   This enables you to keep everything in one place.
  6. IF NOT EXIST VCHECK ECHO   You may wish to edit %0.BAT to further customize it.
  7. IF NOT EXIST VCHECK GOTO END
  8. IF EXIST VBAIT.OLD GOTO DOCOMPARE
  9. ECHO  
  10. ECHO    ┌──────────────────────────────────────────────────────────────┐
  11. ECHO    │  We must make a reference file of your bait programs.        │
  12. ECHO    │  Next time, we will make a fresh list to compare it with.    │
  13. ECHO    │  Any changes to your bait data will cause immediate alarm.   │
  14. ECHO    │  We now will make a reference list called VBAIT.OLD when     │
  15. ECHO    │  you . . .                                                   │
  16. ECHO    └──────────────────────────────────────────────────────────────┘
  17. ECHO                                 [Strike any key to continue.]
  18. PAUSE > NUL
  19. VCHECK /VBAIT.OLD %1 %2 %3 %4 %5 %6 %7 %8 %9
  20. ECHO  
  21. ECHO            . . . Done!
  22. ECHO   The reference list has been made.
  23. ECHO   Unless you delete this list, VBAIT will from now on
  24. ECHO   be able to detect changes to the data files
  25. ECHO   which you have selected: %1 %2 %3 %4 %5 %6 %7 %8 %9
  26. ECHO
  27. GOTO ENDMSG
  28. :DOCOMPARE 
  29. ECHO  
  30. ECHO  
  31. ECHO We must make a list for comparison.   [Strike any key to continue.]
  32. PAUSE > NUL
  33. VCHECK /VBAIT.NEW %1 %2 %3 %4 %5 %6 %7 %8 %9
  34. ECHO  
  35. ECHO  New comparison list made. Comparing old and new statistics with VCOMP.
  36. ECHO  
  37. VCOMP VBAIT.OLD VBAIT.NEW
  38. if errorlevel 9 ECHO          !!! WARNING: VCOMP is virus-infected !!!
  39. if errorlevel 9 ECHO            RUN VC1 and VC2 (VC.BAT) IMMEDIATELY
  40. if errorlevel 9 goto end
  41. if errorlevel 7 goto changes
  42. if errorlevel 6 goto changes
  43. if errorlevel 1 echo    Trouble with VCOMP. Please check the program.
  44. if errorlevel 1 goto end
  45. ECHO         ┌─────────────────────────────────────────────┐
  46. ECHO         │  Victor Charlie has looked and found        │
  47. ECHO         │  your bait files to be unchanged since      │ 
  48. ECHO         │  your last comparison.  Rest easy.          │
  49. ECHO         │  You can be sure no virus bomb is at work.  │
  50. ECHO         └─────────────────────────────────────────────┘
  51. ECHO  
  52. GOTO ENDMSG
  53. :HELP
  54. ECHO  
  55. ECHO          ┌──────────────────────────────────────────────────────┐
  56. ECHO          │  VBAIT will help you detect changes to your data.    │
  57. ECHO          │  If you have not yet selected files to use for bait, │
  58. ECHO          │  please refer to the Victor Charlie manual on        │
  59. ECHO          │  "Protecting Your Data" for guidance.                │
  60. ECHO          │  You then must tell this program how you have        │
  61. ECHO          │  named your bomb-bait files. For example:            │
  62. ECHO          │          VBAIT MYBAIT?.* [Enter]                     │
  63. ECHO          └──────────────────────────────────────────────────────┘
  64. ECHO  
  65. GOTO END
  66. :ENDMSG 
  67. ECHO  ┌──────────────────────────────────────────────────────────┐
  68. ECHO  │  Remember: if you change, add or delete any of your      │
  69. ECHO  │  bait files, you should delete VBAIT.OLD from this       │
  70. ECHO  │  directory. You then can make a fresh list with VBAIT.   │
  71. ECHO  └──────────────────────────────────────────────────────────┘
  72. ECHO  
  73. GOTO END
  74. :CHANGES
  75. ECHO    
  76. ECHO   ╔═════════════════════════════════════════════════════╗
  77. ECHO   ║                !!! WARNING !!!                      ║
  78. ECHO   ║  Victor Charlie has detected changes in your bait.  ║
  79. ECHO   ║      If you yourself have  made no changes          ║
  80. ECHO   ║      to the file(s) listed above, you  MAY          ║
  81. ECHO   ║      be the victim of a virus bomb attack!          ║
  82. ECHO   ║  Please look at the Victor Charlie manual section   ║
  83. ECHO   ║  on monitoring data  files for suggestions on how   ║
  84. ECHO   ║  to proceed.  Remember,  VBAIT can determine if a   ║
  85. ECHO   ║  file has been changed, but not the cause of such   ║
  86. ECHO   ║  change. Ensure  you have  not changed  the above   ║
  87. ECHO   ║  files yourself before you start  a virus search.   ║
  88. ECHO   ║ Do run Victor Charlie detection immediately. Type:  ║
  89. ECHO   ║                RUNVC [Enter]                        ║
  90. ECHO   ╚═════════════════════════════════════════════════════╝
  91. :END